using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using LibHuman;

namespace Human.FormBaoCao
{
    public partial class frm_dstncanbocongchuc : Form
    {
        public frm_dstncanbocongchuc()
        {
            InitializeComponent();
        }
        AccessData mDB = new AccessData();
        DataSet ds = new DataSet();
        string sql = "", user = "",denngay="";
        private void frm_dstncanbocongchuc_Load(object sender, EventArgs e)
        {
            user = mDB.user;
            load_bophan();
            load_phai();
        }
        private void load_bophan()
        {
            cbo_bophan.DisplayMember = "tenbp";
            cbo_bophan.ValueMember = "madv";
            cbo_bophan.DataSource = mDB.get_bophan().Tables[0];
            cbo_bophan.SelectedIndex = -1;
        }
        private void load_phai()
        {
            cbo_phai.DisplayMember = "ten";
            cbo_phai.ValueMember = "ten";
            cbo_phai.DataSource = mDB.get_dmphai().Tables[0];
            cbo_phai.SelectedIndex = -1;
        }
        private DataSet get_data()
        {
            return ds;
        }
        private void btn_thoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btn_exel_Click(object sender, EventArgs e)
        {

        }
    }
}